package com.sg.service.impl;

import com.sg.bean.CommodityState;
import com.sg.dao.CommodityStateDao;
import com.sg.service.CommodityStateService;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author fyp
 * 商品状态业务逻辑实现类
 */
@Service
public class CommodityStateServiceImpl implements CommodityStateService {
    Logger logger=Logger.getLogger(CommodityStateServiceImpl.class);
    @Autowired
    CommodityStateDao commodityStateDao;
    @Override
    public List<CommodityState> findAll() {
        return commodityStateDao.findAll();
    }

    @Override
    public CommodityState findById(int comStateId) {
        return commodityStateDao.findById(comStateId);
    }
}
